In [ ]:
from bokeh.plotting import output_notebook, show
output_notebook()

Charts


In [ ]:
from bokeh.charts import Bar, Line, Dot
import pandas as pd
import datetime

In [ ]:
Z = pd.DataFrame({
            'AAPL': [1, 2, 3],
            'GOOGL': [2, 3, 4],
        },
        index = [datetime.date(2012, 1, 1), datetime.date(2012, 2, 1), datetime.date(2012, 3, 1)]
    )

In [ ]:
bar = Bar(Z, [a.strftime("%Y-%m") for a in Z.index], title="Volatility", stacked=True, xlabel='Time')
show(bar)

In [ ]:
line = Line(Z, title="Volatility")
show(line)

In [ ]:
dot = Dot(Z, [a.strftime("%Y-%m") for a in Z.index], title="Volatility", xlabel='Time')
show(dot)

In [ ]:
dot_plus = Dot(Z, [a.strftime("%Y-%m") for a in Z.index], title="Volatility", xlabel='Time')
dot_plus.renderers.append(bar.renderers[-1])
dot_plus.renderers.append(bar.renderers[-2])
show(dot_plus)

In [ ]:
bar.renderers

In [ ]:
dot.renderers

Plotting


In [ ]:
from bokeh.plotting import figure

In [ ]:
p = figure( title="Volatility",)
p.line(Z.index, Z['AAPL'], line_color='red')
p.line(Z.index, Z['GOOGL'], line_color='green')

In [ ]:
show(p)